import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { $alert } from './plugins'
// import 'assets/js/setRem'
import { Tabbar, GoodsAction, Search, AddressEdit, AddressList, ContactCard, field, Form, Popup, GoodsActionIcon, GoodsActionButton, TabbarItem, Badge, SubmitBar, Dialog, Checkbox, CheckboxGroup, Icon, Button, Stepper, SwipeCell, Swipe, SwipeItem, Grid, GridItem, NavBar, Card } from 'vant'
import axios from 'axios'
import loading from './plugins/loading'
Vue.prototype.$http = axios
Vue.use(loading)
Vue.use($alert, {
  a: 2,
  b: 3
})
Vue.use(Tabbar)
  .use(Swipe)
  .use(SwipeItem)
  .use(Grid)
  .use(SwipeCell)
  .use(Dialog)
  .use(GridItem)
  .use(Card)
  .use(Button)
  .use(TabbarItem)
  .use(Icon)
  .use(NavBar)
  .use(Stepper)
  .use(field)
  .use(Checkbox)
  .use(Badge)
  .use(CheckboxGroup)
  .use(SubmitBar)
  .use(GoodsAction)
  .use(ContactCard)
  .use(GoodsActionButton)
  .use(Form)
  .use(AddressEdit)
  .use(GoodsActionIcon)
  .use(Popup)
  .use(AddressList)
  .use(Search)
  // .use(Loading)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
